package com.me.libgdx_test;

public class ClassObjectPickupDungeon extends AbstractClassObjectDungeon{
	//Glossary for what the pickups do
	/*
	 * 0) Atk +2
	 * 1) Health +5
	 * 2) Health Potion +1
	 * 3) Mana +5
	 * 4) Mana Potion +1
	 * 5) Gold +10
	 * 6) Blood Pool +1
	 */
	private ClassDungeonPickup object;
	ClassObjectPickupDungeon(ClassDungeonPickup object){
		this.object = object;
	}
	public ClassDungeonPickup get_pickup_info(){
		return object;
	}
	//The object needs to modify the player class here, and return
	//true/false if the item should be removed from the map
	public boolean stepped_on(ClassCharacterPlayer player){
		if (object.get_item_type()<6){
			player.pickedup(object.Name);
			player.add_god_action("used_items");
			return true;
		}else if(object.Name == "Blood Pool"){
			return player.get_class_mods().playerPickupMod.use_blood_pool(player);
		}else{
			//The only other pickups are life and piety. Haven't figure out what to do with these yet
			return false;
		}
	}
}
